package com.xd.center.api.bean.request;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@EqualsAndHashCode(callSuper=false)
public class IndexRq extends SmartApiRq {

  @ApiModelProperty(value = "数据类型: 范围(all=全国,square=不同面积,citylevel=各线城市,area=地区(东部,西部)),cityCode=0000时必填")
  private String dataType;
  @ApiModelProperty(value = "起始时间: 格式yyyymm或yyyymmdd", required = true)
  private String startDate;
  @ApiModelProperty(value = "结束: 格式yyyymm或yyyymmdd", required = true)
  private String endDate;
  @ApiModelProperty(value = "时间范围: 范围(Month=月, Week=周) (区分大小写)", required = true)
  private String cycleType;
  @ApiModelProperty(value = "指数类型: 范围(esf=二手房, czf=出租房) (区分大小写)", required = true)
  private String strType;
  @ApiModelProperty(value = "指数级别: 范围(0=全国,1=城市级,2=行政区级,3=小区级,4=省份, 默认1)")
  private String indexLevel;
  @ApiModelProperty(value = "城市或行政区code")
  private List<String> codes;
}
